<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>成本凭证</title>
	<include file="Public:header" />
	<style type="text/css">
		.input{width:150px;border:1px solid #ccc;padding:2px;}
	</style>
	<script type="text/javascript">
		var actflg="{:C('URL_MODEL')}"=="0"?"&":"?";
		
		function selectall_todo()
		{
			$("input[name='chk_list']").attr("checked",true);
		}
		function selectall_undo()
		{
			$("input[name='chk_list']").attr("checked",false);
		}
	</script>
</head>
<body class="">
	<div class="demo-info space-out-5px">
		<div class="demo-tip icon-tip"></div>
		<div>成本凭证</div>
	</div>
	
	<div class=" space-out-10px">
	
	<div class="list-title">
		<div class="list-t-l w80px">日期</div>
		<div class="list-t-l w80px">仓库</div>
		<div class="list-t-l w150px">商品名称</div>
		<div class="list-t-l w100px">编号/条码</div>
		<div class="list-t-l w50px">单位</div>		
		<div class="list-t-l w60px">入库数量</div>
		<div class="list-t-l w60px">入库价值</div>
		<div class="list-t-l w60px">单位成本</div>
		<div class="list-t-l w60px">出库数量</div>
		<div class="list-t-l w60px">出库价值</div>
		<div class="list-t-l w60px">单位成本</div>
	</div>
	
	<div class="list-box">
	<volist name="datalist" id="datalist">
	<div class="list-body">
		<div class="list-t-l w80px">{$datalist.fadate|date='Y-m-d',###}</div>
		<div class="list-t-l w80px">{$datalist.wh_title}</div>
		<div class="list-t-l w150px" alt="{$datalist.stk_title}" title="{$datalist.stk_title}">{$datalist.stk_title}</div>
		<div class="list-t-l w100px">{$datalist.stk_code}</div>
		<div class="list-t-l w50px">{$datalist.stk_uom}</div>		
		<div class="list-t-l w60px">{$datalist.dr_qty|get_round=###,6}</div>
		<div class="list-t-l w60px">{$datalist.dr_amount|get_round=###,6}</div>
		<div class="list-t-l w60px"><php>echo get_round((double)$datalist['dr_amount']/(double)$datalist['dr_qty']);</php></div>
		<div class="list-t-l w60px">{$datalist.cr_qty|get_round=###,6}</div>
		<div class="list-t-l w60px">{$datalist.cr_amount|get_round=###,6}</div>
		<div class="list-t-l w60px"><php>echo get_round((double)$datalist['cr_amount']/(double)$datalist['cr_qty']);</php></div>
	</div>
	</volist>
	</div>
	
	<div class="list-title">
		<div class="list-t-l"><b>入库数量：{$stk_total.dr_qty|get_round=###,6}&nbsp;&nbsp;&nbsp;&nbsp;入库价值：{$stk_total.dr_amount|get_round=###,6}</b></div>
		<div class="list-t-l w50px"></div>
		<div class="list-t-l"><b>出库数量：{$stk_total.cr_qty|get_round=###,6}&nbsp;&nbsp;&nbsp;&nbsp;出库价值：{$stk_total.cr_amount|get_round=###,6}</b></div>
		<div class="list-t-r"></div>
	</div>
	
	</div>
	

</body>
</html>
